#include <iostream>
#include <time.h>
#include <stdlib.h>

using namespace std;
void monster1(){
	int ID[7] = {0};
	int m = 0;
	int i = 0;
	for(i = 0; i<10000000; i++){//천만 마리 처리.
		m = rand()%10000000;		
		if(m >=0 && m <= 999) {
			ID[0]++; 		
		}
		else if (m >= 1000 && m <= 1999) {
			ID[1]++;	
		}

		else if (m >=2000 && m <= 11999) {
			ID[2]++;
		}

		else if (m >= 12000 && m<= 21999) {
			ID[3]++;
		}
		else if (m >= 22000 && m <= 121999) {
			ID[4]++;
		}
		else if (m >= 122000 && m <= 1121999) {
			ID[5]++;
		}
		else{
			ID[6]++;
		}
		
	}


	for(i=0; i<7; i++){
		cout<<i+1<<"0 ITEM dropped : "<<ID[i]<<endl;	
	}
}


int main()
{
		
	srand((unsigned)time(NULL));

	monster1();
		
	return 0;

}

